package main.command;

public class Main {

    public static void main(String[] args) {

	Switch sw = new Switch();

	System.out.println("=======================================LIGHTTTTTTTTTTTTTTTT======================================");
	Command lightOnCommand = new LightOnCommand();
	Command lightOffCommand = new LightOffCommand();
	sw.setCommand(lightOnCommand, lightOffCommand);
	sw.turnOn();
	sw.turnOff();

	System.out.println("=======================================FANNNNNNNNNNNNNNNNNNNN======================================");
	Command fanOnCommand = new FanOnCommand();
	Command fanOffCommand = new FanOffCommand();
	sw.setCommand(fanOnCommand, fanOffCommand);
	sw.turnOn();
	sw.turnOff();
	sw.turnOn();
	sw.turnOn();
	sw.turnOff();
	System.out.println("=======================================FAN UNDO======================================");
	sw.undo();
	sw.undo();
	sw.undo();
	sw.undo();
	sw.undo();
	sw.undo();
	sw.undo();
    }

}
